package com.atguigu.gulimall.order.feigin;

import com.atguigu.common.to.es.SkuHasStock;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient
public interface WareFeignService {

    @RequestMapping("/ware/waresku/hasstock")
     List<SkuHasStock> getSkuHasStock(@RequestBody List<Long> skuIds);

    /**
     * 获取运费 同时获取   收货地址详细信息
     * @param addrId
     * @return
     */
     @GetMapping("/ware/waresku/fare")
     R getFare(@RequestParam("addrId")Long addrId);

     @PostMapping("/ware/waresku//lock")
     R saveOrderToLockStock(@RequestBody WareSkuLockVo wareSkuLockVo);

}
